<?php

use Illuminate\Database\Seeder;

class QuestiontypesTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $name=[
            '单选题',
            '多选题',
            '判断题',
        ];

         for ($i=0;$i<=2;$i++){
            $data['name']=$name[$i];
            DB::table('questiontypes')->insert($data);
        }

        //
    }
}
